﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel;

namespace WcfGeebaServer
{
    public interface IListener
    {
        [OperationContract(IsOneWay = true)]
        [ServiceKnownType(typeof(ContentManage.GThread))]
        [ServiceKnownType(typeof(ContentManage.GPost))]
        void onUpdate(ContentManage.GThread message, DateTime timestamp, bool IsNotification);

        [OperationContract(IsOneWay = true)]
        [ServiceKnownType(typeof(ContentManage.GThread))]
        [ServiceKnownType(typeof(ContentManage.GPost))]
        void onEditMessage(string subforumTopic, ContentManage.GThread message, DateTime timestamp);
    }
}